package org.jpass.dc.business.user.logic;

import java.util.List;

import org.jpass.dc.business.user.bean.UserGroupVOBean;
import org.jpass.dc.business.user.dao.UserGroupDao;
import org.jpass.dc.business.user.dao.UserGroupDaoImpl;

public class UserGroupLogicImpl implements UserGroupLogic {
	private UserGroupDao userGroupDao = new UserGroupDaoImpl();

	public String addGroup(UserGroupVOBean voBean) throws Exception{
		String groupId = userGroupDao.addGroup(voBean);
		return groupId;
	}
	
	public UserGroupVOBean findGroupById(String groupId) throws Exception{
		UserGroupVOBean voBean = userGroupDao.findGroupObjById(groupId);
		return voBean;
	}
	
	public List<UserGroupVOBean> findAllGroup() throws Exception{
		List<UserGroupVOBean> list = userGroupDao.findGroupObjList();
		return list;
	}
}
